package yun.web.springmvc.ext;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.method.HandlerMethod;
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter;
import org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod;


@Configuration
public class MvcRequestMappingHandlerAdapter extends RequestMappingHandlerAdapter {

    /*------------------------
          author: 张天笑
          date: 2019/3/4
          time: 13:41
    -------------------------*/
    @Override
    protected ServletInvocableHandlerMethod createInvocableHandlerMethod(HandlerMethod handlerMethod) {
        // 使用自定义的ServletInvocableHandlerMethod
        return new MvcServletInvocableHandlerMethod(handlerMethod);
    }

}